package com.eltonkent.dashboard.service.responsehandler;

import java.io.InputStream;

import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

import android.util.Xml;

import com.eltonkent.dashboard.data.container.Container;

abstract class XmlHandler {

	public abstract Container deserialize(InputStream is);

	protected XmlPullParser getParser(InputStream is)
			throws XmlPullParserException {
		XmlPullParser parser = Xml.newPullParser();
		parser.setInput(is, null);
		return parser;
	}
}
